package com.easylinkin.linkappapi.airconditioner.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.airconditioner.entity.AirDevice;
import com.easylinkin.linkappapi.airconditioner.entity.AirMonitorQuery;
import com.easylinkin.linkappapi.airconditioner.entity.ext.DeviceTimerCount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * class info :
 *
 * @author liuqihang
 * @date 2021/5/8 11:09
 */
public interface AirMonitorMapper extends BaseMapper<AirDevice> {

    IPage<AirDevice> getAirDevicePage(Page page, @Param("amq") AirMonitorQuery amq);

    List<AirDevice> getAirDevicePage(@Param("amq") AirMonitorQuery amq);

    Integer getAirConditionStatistic(@Param("amq") AirMonitorQuery amq);

    List<DeviceTimerCount> checkTimerCountByDeviceCodeList(@Param("deviceCodeList")List<String> deviceCodeList);
}
